package com.desksoft.dao;

import java.util.List;
import java.util.Map;

import javax.inject.Inject;

import com.desksoft.common.BaseDao;
import com.desksoft.entity.Categorydetail;
import com.desksoft.entity.mapper.CategorydetailMapper;


public class CategoryDetailDao extends BaseDao {

	@Inject
	CategorydetailMapper categorydetailMapper;

	public List<Categorydetail> selectByParentId(String categoryId) {
		return categorydetailMapper.selectByParentId(categoryId);
	}

	public Integer insertSelective(Categorydetail categorydetail) {
		return categorydetailMapper.insertSelective(categorydetail);
	}

	public Integer deleteByPrimaryKey(String id) {
		return categorydetailMapper.deleteByPrimaryKey(id);
	}

	public Integer updateSequ(Map<String, Object> map) {
		return categorydetailMapper.updateSequ(map);
	}
}
